package com.java.dormitorymanager.dao;

import com.java.dormitorymanager.pojo.Manager;

import java.util.List;

public interface IManagerDao
{
    Manager findByNameAndPassword(String name,String password);

    void addManager(Manager manager);

    List<Manager> findAll();

    List<Manager> findAllSuperManager();

    Manager findManagerById(int id);

    void updateSuperManager(Manager manager);

    List<Manager> findAllCommonManager();

    void deleteCommonManagerById(int id);

    void updateCommonManager(Manager manager);

    void addCommonManager(Manager manager);

    Manager findCommonManagerByName(String name);

    void updateCommonManagerStatusToZero(int id);

    List<Manager> findAllBannedManager();

    void deleteBannedManagerById(int id);

    void openBannedManagerById(int id);

    List<Manager> findAllDormManager();
}
